package StructuralPattern.Decorator;

/**
 * @Classname : AbstractCarDecorator
 * @Description : 抽象装饰者
 * @Author : chentianyu
 * @Date 2023/2/15 23:21
 */


public abstract class AbstractCarDecorator implements Car {

    private Car car;

    public AbstractCarDecorator(Car car) {
        this.car = car;
    }

    @Override
    public void run() {
        this.car.run();
    }
}
